package fastDfs.core;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;

public interface Downloadfeign {

    /**
     * 文件上传
     * @return result
     */
    public HashMap<String, Object> uploadImageByCover(MultipartFile file);
    /**
     * 文件删除
     * @param path
     * @return
     */
    public HashMap<String, Object> delete(String path);

    /**
     * 文件下载
     * @param url 路径
     * @return
     */
    public void downLoad(String url, HttpServletResponse response) throws IOException;

}
